-
Notifications
You must be signed in to change notification settings - Fork 3k
fix: BROS-91: Annotation Submission/Validation bypass race condition #8111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8111 +/- ##
===========================================
- Coverage 70.53% 65.51% -5.02%
===========================================
Files 719 505 -214
Lines 51391 33872 -17519
Branches 8736 8737 +1
===========================================
- Hits 36248 22192 -14056
+ Misses 15140 11677 -3463
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The validation bypass race condition occurs when users rapidly click submit buttons (or trigger other events that cause <500ms submissions while validation takes longer), allowing invalid submissions to bypass required field validation.
Possible state change:
This implementation provides multi-layered protection against the validation bypass race condition:
isValidating
flag prevents concurrent submission attempts_isValidating
flag prevents concurrent validation executionHow It Prevents Race Conditions
Before Fix (Vulnerable):
After Fix (Protected):